import { useEffect, useState } from 'react'
import { Button } from 'react-vant'
import logo from './logo.svg'
import './App.css'

import Hello from '@/components/hello'
import { getTest } from '@/api/test'

function App() {
  const [count, setCount] = useState(0)

  useEffect(() => {
    getTest({ name: 123 }).then(res => {
      console.log(res)
    })
  })

  return (
    <div className="App">
      <h5 className="test">1231313</h5>
      <Hello />
      <div className="demo-button">
        <Button size="mini" type="primary">主要按钮</Button>
        <Button size="mini" type="info">信息按钮</Button>
        <Button size="mini" type="default">默认按钮</Button>
        <Button size="mini" type="warning">警告按钮</Button>
        <Button size="mini" type="danger">危险按钮</Button>
      </div>
    </div>
  )
}

export default App
